package com.ruoyi.web.controller.work;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.work.domain.WorkFill;
import com.ruoyi.work.domain.vo.BoardDataVo;
import com.ruoyi.work.service.IWorkBoardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: MMDZ
 * @Desc: TODO 系统首页 看板数据
 */
@RestController
@RequestMapping("/work/board")
public class WorkBoardController extends BaseController {

    @Autowired
    private IWorkBoardService workBoardService;

    /**
     * 初始化看板数据
     */
    @GetMapping("/init")
    public AjaxResult init() {
        BoardDataVo res = workBoardService.init();
        return AjaxResult.success(res);
    }
}
